import os
import pandas as pd





class DataOperation:
    def __init__(self,path1):
        self.data = pd.read_csv(path1)

    def get_data_to_dict(self):
        return [self.data.loc[i] for i in self.data.index.values]
    def get_data_to_list(self):
        return [self.data.values.tolist()]
if __name__ == '__main__':
    project_path = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
    path1 = os.path.join(project_path, 'data/lj_data.csv')
    dat = DataOperation(path1)
    print(dat.get_data_to_dict())
    print(dat.get_data_to_list())




